﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
using System.Text;

namespace ALDIOrganizer
{
    public static class ShiftExtensionMethods
    {
        /// <summary>
        /// 
        /// </summary>
        /// <remarks>
        /// Uses 24h Time.
        /// Allows for any number of Blank spaces anywhere.
        /// Example matches: 08:00-16, 19:15-23, 9 - 17 : 45
        /// 
        /// It also allows using "cl" acronyme (which means "until Close").
        /// E.g. 14:30 - cl
        /// 
        /// These will NOT match: 9:20 -  15,  (only :00, :15, :30, :45)         
        /// </remarks>
        const string _shiftReg = @"^[\s]*(([1-9]|[1]\d|[0]\d|2[0-3])|op)[\s]*(:[\s]*(00|15|30|45)[\s]*)?-[\s]*(([1-9]|[1]\d|[0]\d|2[0-3])[\s]*(:[\s]*(00|15|30|45)[\s]*)?|cl)[\s]*$";

        // public static 

    }
}
